package com.wangyk.user.controller;

import com.wangyk.rabbitmqcommon.VO.ResultVO;
import com.wangyk.rabbitmqcommon.utils.ResultVOUtils;
import com.wangyk.user.service.RedisService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/redis")
@Slf4j
public class RedisController
{
    @Autowired
    private RedisService redisService;

    @RequestMapping("/set_redis_list.do")
    @ResponseBody
    public ResultVO setRedisList()
    {
        redisService.setRedisList();
        return ResultVOUtils.success();
    }
}
